package com.hanamaki.oop.demo02;

public class Tourist {

    String name;
    int age;

    public void isMoney() {
        if (this.age >= 18 && this.age <= 60) {
            System.out.println(this.name + "的年龄为：" + this.age + ";要收费");
        } else {
            System.out.println("免费");
        }

    }

}
